package com.gscitysfy.cus.drain.modules.duty.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gscitysfy.cloudfrmwk.assistant.domain.Result;
import com.gscitysfy.cus.drain.modules.duty.entity.MoperDutyMnExchange;
import com.gscitysfy.cus.drain.modules.duty.vo.MoperDutyMnExchangeVo;


import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author 葛守跃
 * @version 1.0.0
 * @ClassName IMoperDutyMnExchangeService
 * @Description 接口
 * @creatTime 2022-04-07 15:20:40
 */
public interface IMoperDutyMnExchangeService extends IService<MoperDutyMnExchange> {

    /**
     * 交换班记录查询
     * @param page
     * @param exchange
     * @return
     */
    IPage<MoperDutyMnExchange> selectExchangeRecordsByCondition(Page<MoperDutyMnExchange> page, MoperDutyMnExchangeVo exchange);

    /**
     * 导出替班、换班人员数据
     * @param response
     * @param exchange
     */
    void exportExchangeRecords(HttpServletResponse response, MoperDutyMnExchangeVo exchange) throws IOException;

    /**
     * @author: wuxx
     * @date: 2022/4/24
     * @description: 审核交换班信息
     * @param exchange
     */
    Result<Boolean> examineRecord(MoperDutyMnExchange exchange) ;


}
